﻿using System;
using System.Collections.Generic;
using System.Threading;
using System.Windows.Forms;

namespace CATLTempUpdate
{
    static class Program
    {
        /// <summary>
        /// 应用程序的主入口点。
        /// </summary>
        [STAThread]
        static void Main()
        {
            System.Diagnostics.Process[] processes = System.Diagnostics.Process.GetProcessesByName("CATLFormationTempUpdate");
            if (processes.Length > 1)
            {
                int cc = processes.Length;
                for(int i = 0;i<cc-1;i++)
                {
                    processes[i].Kill();
                }

                Thread.Sleep(500);
            }

                Application.EnableVisualStyles();
                Application.SetCompatibleTextRenderingDefault(false);
                Application.Run(new FormTemperatureStocking());
                //Application.EnableVisualStyles();
                //Application.SetCompatibleTextRenderingDefault(false);
                //Application.Run(new FormMessageShow("CATL初充电温度管理系统, 已启动！"));


        }
    }
}